/*
 * Client.cpp
 *
 *  Created on: 22 mars 2012
 *      Author: root
 */

#include "Client.h"
#include <fstream>



Client::Client() {}

Client::Client(string Nom,string Prenom,string Adresse,long CIN,long Tel,long IdentifiantClient)
{
	this->Nom=Nom;
	this->Prenom=Prenom;
	this->Adresse=Adresse;
	this->CIN=CIN;
	this->Tel=Tel;
	this->IdentifiantClient=IdentifiantClient;

}
Client::~Client() {}

string Client::getNom()const
{
	return this->Nom;
}

void Client::setNom(string Nom)
{
	this->Nom=Nom;
}

string Client::Client::getPrenom()const
{
	return this->Prenom;
}

void Client:: setPrenom(string Prenom)
{
	this->Prenom=Prenom;
}

string Client::Client::getAdresse()const
{
	return this->Adresse;
}

void Client::setAdresse(string Adresse)
{
	this->Adresse=Adresse;
}

long Client::getCIN()const
{
	return this->CIN;
}

void Client::setCIN(long CIN)
{
	this->CIN=CIN;
}

long Client::getTel()const
{
	return this->Tel;
}

void Client::setTel(long Tel)
{
	this->Tel=Tel;
}

long Client::getIdentifiantClient()const
{
	return this->IdentifiantClient;
}

void Client::setIdentifiantClient(long IdentifiantClient)
{
	this->IdentifiantClient=IdentifiantClient;
}


ifstream& operator>>(ifstream& in,Client& C)
	{
	in>>C.IdentifiantClient>>C.Nom>>C.Prenom>>C.CIN>>C.Adresse>>C.Tel;
	return in;
	}

ofstream& operator<<(ofstream& out,const Client& C)
	{
	out<<C.IdentifiantClient<<C.Nom<<C.Prenom<<C.CIN<<C.Adresse<<C.Tel;
	return out;
	}

